import { get, post, put, del, host } from "./Http.js";

const api = {
  host,
  auth: {
    login(p, cb) {
      post("/login", p, cb);
    },
    profile(p, cb) {
      post("/profile", p, cb);
    },
    smsCode(p, cb) {
      post("/smsCode", p, cb);
    },
    register(p, cb) {
      post("/register", p, cb);
    },
    userEdit(p, cb) {
      post("/userEdit", p, cb);
    },
    changePwd(p, cb) {
      post("/changePwd", p, cb);
    }
  }
};

export default api;
